#include "DisplayManager.h"

void DisplayManager::createDisplay()
{
	mDisplay.setTitle("First window");
	mDisplay.setDisplayWidthAndHeight(640,480);
	ContextAttri attr(4, 6);
	mDisplay.create(attr);
}

void DisplayManager::updateDisplay()
{
	mDisplay.update();
}

void DisplayManager::closeDisplay()
{
	mDisplay.destroy();
}

bool DisplayManager::isRequestClosed()
{
	return mDisplay.isRequestClosed();
}

bool DisplayManager::isKeyPressed(unsigned int keyCode)
{
	return mDisplay.isKeyPressed(keyCode);
}

bool DisplayManager::isKeyReleased(unsigned int keyCode)
{
	return mDisplay.isKeyReleased(keyCode);
}

GLFWwindow* DisplayManager::getWindow()
{
	return mDisplay.getWindow();
}

Camera* DisplayManager::getCamera()
{
	return mDisplay.getCamera();
}

